package com.gxgy.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @description:  借阅表
 * @author: Qin Fengang
 * @date: 2021-11-11
 */
@TableName("borrow")
public class Borrow {
	
	// 借阅表编号
	public final static String ID = "id";
	@TableId
	private String id;

	// 借阅人id
	public final static String USER_NAME = "user_id";
	@TableField("user_id")
	private String userId;
	
	//图书id 
	public final static String BOOK_ID = "book_id";
	@TableField("book_id")
	private String bookId;
	
	// 借阅日期
	public final static String BORROW_START = "boorrow_start";
	@TableField("boorrow_start")
	private Date borrowStart;
	
	//状态是/否归还 
	public final static String STATE = "state";
	@TableField("state")
	private Integer state;
	
	//归还日期
	public final static String BORROW_STILL = "borrow_still";
	@TableField("borrow_still")
	private Date borrowStill;
	
	
	public Borrow() {
		super();
	}


	public Borrow(String id, String userId, String bookId, Date borrowStart, Integer state, Date borrowStill) {
		super();
		this.id = id;
		this.userId = userId;
		this.bookId = bookId;
		this.borrowStart = borrowStart;
		this.state = state;
		this.borrowStill = borrowStill;
	}


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getUserId() {
		return userId;
	}


	public void setUserId(String userId) {
		this.userId = userId;
	}


	public String getBookId() {
		return bookId;
	}


	public void setBookId(String bookId) {
		this.bookId = bookId;
	}


	public Date getBorrowStart() {
		return borrowStart;
	}


	public void setBorrowStart(Date borrowStart) {
		this.borrowStart = borrowStart;
	}


	public Integer getState() {
		return state;
	}


	public void setState(Integer state) {
		this.state = state;
	}


	public Date getBorrowStill() {
		return borrowStill;
	}


	public void setBorrowStill(Date borrowStill) {
		this.borrowStill = borrowStill;
	}


	@Override
	public String toString() {
		return "Borrow [id=" + id + ", userId=" + userId + ", bookId=" + bookId + ", borrowStart=" + borrowStart
				+ ", state=" + state + ", borrowStill=" + borrowStill + "]";
	}
	
	
}
